package cn.frh.log.util;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

public class RequestUtils {
    public static HttpServletRequest getRequest(){
       return ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
    }
}
